# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=ytop
pkgver=0.6.2
pkgrel=0
pkgdesc="A TUI system monitor written in Rust"
url="https://github.com/cjbassi/ytop"
arch="all !s390x !mips !mips64" # limited by cargo
license="MIT"
options="!check" # no test suite
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/cjbassi/ytop/archive/$pkgver.tar.gz"

build() {
	cargo build --release --locked --all-features
}

package() {
	install -Dm755 target/release/ytop "$pkgdir"/usr/bin/ytop
}

sha512sums="1d16f6fc36fe6a119e1fff644229516a4b14bff0e3611caf45d24d41a7bc5e5ccea98623b6b5242b8b59f06df11d7e762cc962cceede81db45f7b2a07ebaa46f  ytop-0.6.2.tar.gz"
